package com.zhz.system.contract.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 根据用户id查询用户信息
 * @author zhouhengzhe
 * @date 2023/4/3
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserFindOneResponse {

    @ApiModelProperty( "用户id")
    private String id;

    @ApiModelProperty( "手机号码")
    private String mobile;

    @ApiModelProperty( "用户名称")
    private String username;

    @ApiModelProperty( "密码")
    private String password;

    @ApiModelProperty( "启用状态 0是禁用，1是启用")
    private Integer enableState;

    @ApiModelProperty( "部门ID")
    private String departmentId;

    @ApiModelProperty( "入职时间")
    private LocalDateTime timeOfEntry;

    @ApiModelProperty( "聘用形式")
    private Integer formOfEmployment;

    @ApiModelProperty( "工号")
    private String workNumber;

    @ApiModelProperty( "管理形式")
    private String formOfManagement;

    @ApiModelProperty( "工作城市")
    private String workingCity;

    @ApiModelProperty( "转正时间")
    private LocalDate correctionTime;

    @ApiModelProperty( "在职状态 1.在职  2.离职")
    private Integer inServiceStatus;

    @ApiModelProperty( "企业ID")
    private String companyId;

    @ApiModelProperty( "企业名称")
    private String companyName;

    @ApiModelProperty( "部门名称")
    private String departmentName;

    @ApiModelProperty( "用户级别：saasAdmin，coAdmin，user")
    private String level;

    @ApiModelProperty( "员工照片")
    private String staffPhoto;

    @ApiModelProperty( "离职时间")
    private LocalDateTime timeOfDimission;

    private List<RoleUserResponse> roleUserResponse;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class RoleUserResponse {

        @ApiModelProperty("ID")
        private String id;

        @ApiModelProperty("角色ID")
        private String roleId;

        @ApiModelProperty("权限ID")
        private String userId;
    }
}
